package com.java.simple.study.jvm.memstruct.stack;

import java.util.concurrent.TimeUnit;

/**
 * @author zhoujunlin
 * @date 2021/12/11
 * @desc
 **/
public class Demo1_5 {

    public static void main(String[] args) {
        new Thread(()->{
            System.out.println("111111111");
            while (true){

            }
        },"thread1").start();

        new Thread(()->{
            System.out.println("2222222222");
            try {
                TimeUnit.SECONDS.sleep(30000000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        },"thread2").start();

        new Thread(()->{
            System.out.println("333333333");
            try {
                TimeUnit.SECONDS.sleep(30000000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
        },"thread3").start();
    }


}
